package com.se2.antiqueexhibition.Mapper;

import com.se2.antiqueexhibition.pojo.AdminActivity;
import com.se2.antiqueexhibition.pojo.AdminAnnouncement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminAnnouncementMapper {

    void insert(AdminAnnouncement adminAnnouncement);
    void update(AdminAnnouncement adminAnnouncement);
    void delete(int id);
    AdminAnnouncement getAdminAnnouncementById(int id);
    List<AdminAnnouncement> getAdminAnnouncements();
    void updateStatus(int id,int status);

    List<AdminAnnouncement> selectAll();
}
